INC 	= `mylibs-config --cflags` `myImg-config --cflags` `gsl-config --cflags`
LDFLAGS =  `mylibs-config --ldflags` `myImg-config --ldflags` `gsl-config --libs` -lz -fopenmp

ARCH = $(shell uname -m)
PWD  = $(shell pwd)
WARN =  -Wall -Wextra

# -Werror -Wfatal-errors

ifndef OPT
	OPT  := -O3
endif

OPT += -fopenmp

CC=g++
CC=colorgcc

cv: conduction_velocity.cpp
	$(CC) $(WARN) $(OPT) conduction_velocity.cpp $(INC) $(LDFLAGS) -o conduction_velocity.$(ARCH)

clean:
	rm -if *.o conduction_velocity.$(ARCH)

install: all
	mkdir -p ~/$(MYLOCAL)
	cd ~/$(MYLOCAL)/bin &&  ln -sf $(PWD)/conduction_velocity.$(ARCH)

